package org.secangkirkopipanas.gxtcore.server.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import net.sf.hibernate4gwt.pojo.java5.LazyPojo;

import org.secangkirkopipanas.gxtcore.domain.ISystemLookup;

@Entity
@Table(name = "sys_lookup")
public class SystemLookup extends LazyPojo implements Serializable,
		ISystemLookup {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "id", nullable = false, insertable = true, updatable = true)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;

	@Column(name = "lookup_group", length = 150, nullable = false, insertable = true, updatable = true)
	private String lookupGroup;

	@Column(name = "lookup_description", length = 150, nullable = false, insertable = true, updatable = true)
	private String lookupDescription;

	@Column(name = "lookup_value", length = 50, nullable = false, insertable = true, updatable = true)
	private String lookupValue;

	public SystemLookup() {
	}

	public SystemLookup(long id, String lookupGroup, String lookupDescription,
			String lookupValue) {
		this.setId(id);
		this.setLookupGroup(lookupGroup);
		this.setLookupDescription(lookupDescription);
		this.setLookupValue(lookupValue);
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getLookupGroup() {
		return lookupGroup;
	}

	public void setLookupGroup(String lookupGroup) {
		this.lookupGroup = lookupGroup;
	}

	public String getLookupDescription() {
		return lookupDescription;
	}

	public void setLookupDescription(String lookupDescription) {
		this.lookupDescription = lookupDescription;
	}

	public String getLookupValue() {
		return lookupValue;
	}

	public void setLookupValue(String lookupValue) {
		this.lookupValue = lookupValue;
	}
}